/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tsystems.school.simpleclient;

/**
 *
 * @author 123
 */
import com.google.gson.Gson;
import com.tsystems.school.server.*;
import com.tsystems.school.utils.Message;
import java.awt.Color;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Date;

public class SimpleClient {
    private static Gson gs = new Gson();
    private MessageBox mb;
    public  ClientWorker cw ;
    
    public SimpleClient(Contact contact) throws UnknownHostException, IOException {
        // cw = new ClientWorker(new Socket("localhost", 8080));
         new Thread(cw).start();
         mb = new MessageBox(cw);
         mb.setVisible(true);
    }
    
    
}
